import java.util.Arrays;

public class background {
    private final int width;
    private final int height;
    private String[][] backMatrix;

    public String[][] getBackMatrix() {
        return backMatrix;
    }

    public background(int width, int height) {
        this.height = height;
        this.width = width;
        backMatrix=new String[height][width];
        for(String[] c:backMatrix){
            Arrays.fill(c," ");
        }
    }
    public void createBackground(){
        for(int i=0;i<backMatrix.length;i++){
            for(int j=0;j<backMatrix[0].length;j++){
                if(i==0 || i==backMatrix.length-1 || j==0 || j==backMatrix[0].length-1){
                    System.out.print("#"+"\033[0m");
                    continue;
                }
                System.out.print(backMatrix[i][j]+"\033[0m");
            }
            System.out.println();
        }
    }
}
